import 'package:love_newf/app/com/model/room_data_model.dart';

///全局消息监听
class GlobalMessageListener {
  void call(RoomDataModel data) {
    switch(data.msgType){
      case MsgType.ACTION_MSG:  break;
      case MsgType.ACTION_INVITE:  break;
      case MsgType.ACTION_AGREE_EXCLUSIVE:  break;
      case MsgType.ACTION_VIDEO_CALL:  break;
      case MsgType.ACTION_BROADCAST_GUARD_LOVER:  break;
      case MsgType.ACTION_JOIN_TRAIN:  break;
    }
  }
}



class MsgType{
  static const int ACTION_MSG = 1;
  static const int ACTION_INVITE = 2; // 邀请进入直播间
  static const int ACTION_APPLY = 2; // 申请上麦
  static const int ACTION_AGREE_EXCLUSIVE = 3; // 同意加入专属房间
  static const int ACTION_VIDEO_CALL = 4;
  static const int ACTION_BROADCAST_GUARD_LOVER = 5;
  static const int ACTION_JOIN_TRAIN = 6; //同意加入 培训房

  static const int ACTION_GIFT = 9;
  static const int ACTION_PK = 10;
  static const int ACTION_SONG = 11;
  static const int ACTION_TOPPING = 12;
  static const int ACTION_TRAIN = 13;
}